# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-jaraco.envs
pkgver=2.1.1
pkgrel=2
pkgdesc="Classes for orchestrating Python (virtual) environments"
url="https://github.com/jaraco/jaraco.envs"
arch="noarch"
license="MIT"
depends="
	py3-path
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/j/jaraco.envs/jaraco.envs-$pkgver.tar.gz
	setuptools_scm.patch
	"
options="!check" # No tests in pypi package and Github tarball is unusable for distros
builddir="$srcdir/jaraco.envs-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c71aab9748cfa31c27bb7899117e15d2836851a47a76b638177facc89e894dfa2c4168da2d5b1873b1eeed0d785d23137e56e198f92fb83deb26aab38e342ad2  jaraco.envs-2.1.1.tar.gz
2d175a2f4735861dd4731361f5a515c42422ac772385e99e0601adabaab22815a70d6d1c871140116bc538da9602d6105a399bd784f3af4bc1deaf4496843a68  setuptools_scm.patch
"
